import { MonoAppExeUrlParams, MonoAppUrlParams } from '../model/openClientModel';
import { integratedHttp } from '/@/utils/http/axios';

enum Api {
  GET_MONO_APP_URL = '/v1/imc/getMonoAppUrl',
  GET_MONO_APP_EXE_URL = '/v1/imc/getCloudLinkClient',
}

export const getMonoAppUrl = (params: MonoAppUrlParams) => {
  return integratedHttp.get<any>({ url: Api.GET_MONO_APP_URL, params });
};

export const getMonoAppExeUrl = (params: MonoAppExeUrlParams) => {
  return integratedHttp.get<any>({ url: Api.GET_MONO_APP_EXE_URL, params });
};
